home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Compute! Gazette 1988 February
/
1988-02.d64
/
key magician
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
2KB
|
57 lines
10 dimf$(16):rem copyright 1988 compute! publications, inc. all rights reserved
20 print"[147][144] copyright 1988 compute! pub., inc."
30 printtab(11)"all rights reserved":gosub390
40 f$(1)="load"+chr$(34)
50 f$(2)="save"+chr$(34)
60 f$(3)="print"+chr$(34)
70 f$(4)="p[207]53281,0:p[207]53280,0:"+chr$(152)+"list"+chr$(13)
80 f$(5)="goto"
90 f$(6)="gosub"
100 f$(7)="fori=1to500:next"
110 f$(8)="load"+chr$(34)+"$"+chr$(34)+",8"
120 f$(9)="open4,4:cmd4:list"
130 f$(10)="open15,8,15,"+chr$(34)+"v0"+chr$(34)+":close15"
140 f$(11)="open15,8,15,"+chr$(34)+"i0"+chr$(34)+":close15"
150 f$(12)="list0-150"+chr$(13)
160 f$(13)="list151-300"+chr$(13)
170 f$(14)="list300-450"+chr$(13)
180 f$(15)="list451-600"+chr$(13)
190 f$(16)="run"+chr$(13)
200 forp=1to16:l=len(f$(p)):fori=1tol
210 poke51350+c,asc(mid$(f$(p),i,1)):c=c+1:next:poke51350+c,0:c=c+1:next
220 print"[147]all keys are defined."
230 input"do you wish to save this version y[157][157][157]";q$:ifq$="y"then260
240 ifq$<>"n"then230
250 print"[147]":end
260 input"filename";n$:l=len(n$):ifl<1orl>16then260
270 print"please wait..."
280 open15,8,15,"i0":close15:ifst<>0then370
290 open1,8,15:open2,8,2,"0:"^n$+",p,w":ifst<>0then340
300 print#2,chr$(0)chr$(200);
310 fork=51200to51350+c:print#2,chr$(peek(k));:next
320 ifst<>0then340
330 print"save completed.":goto350
340 print"error: [153]";
350 get#1,e$:printe$;:ife$<>chr$(13)then350
360 close1:close2:print"[147]":sys51200:end
370 print"disk error: [153]"
380 print"insert disk and press a key.":wait198,15:geta$:goto280
390 fori=51200to51349:reada:x=x+a:pokei,a:next
400 ifx<>19573thenprint"error in ml data statements.":stop
410 return
420 data 169,124,160,200,32,30,171,120,169,20
430 data 141,20,3,169,200,141,21,3,88,96
440 data 165,197,201,64,208,5,133,253,76,49
450 data 234,197,253,240,249,133,253,201,3,144
460 data 243,201,7,176,239,41,3,133,254,173
470 data 141,2,208,5,165,254,76,65,200,170
480 data 189,142,200,5,254,162,150,160,200,134
490 data 251,132,252,160,0,170,240,17,177,251
500 data 208,3,202,240,9,230,251,208,245,230
510 data 252,76,78,200,200,177,251,240,185,201
520 data 13,240,11,32,210,255,200,208,242,230
530 data 252,76,95,200,141,119,2,162,1,134
540 data 198,76,28,200,83,85,80,69,82,75
550 data 69,89,32,69,78,65,66,76,69,68
560 data 46,0,0,4,8,0,12,0,0,0